package com.shoulder.core.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Copyright (c) 2024-2050 heguangchuan <596767880@qq.com>
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * <a href="http://www.apache.org/licenses/LICENSE-2.0">...</a>
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * <p>
 * 哎 太难了 没想到只是写着玩玩  却耐着性子一直写下来了
 *
 * @author 596767880@qq.com
 * @since 2024/4/28 上午10:10
 */
@Data
@ConfigurationProperties(prefix = "launcher.mybatis")
public class MyBatisProperties {

    private static final String TENANT_ID = "tenantId";
    private static final String DEPT_ID = "deptId";

    /**
     * 是否开启数据权限
     */
    private Boolean dataScope = false;

    /**
     * 根据哪个字段去进行权限过滤
     */
    private String column = "dept_id";

}
